/**
 * @description:
 * @author: qintao
 * @create: 2019-08-28 16:29
 **/
package com.guoranhao.business.vo;

import com.guoranhao.business.model.EsSpu;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

public class EsSpuVo extends EsSpu implements Serializable {

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 购物车id
     */
    private Long shoppingCartId;

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getShoppingCartId() {
        return shoppingCartId;
    }

    public void setShoppingCartId(Long shoppingCartId) {
        this.shoppingCartId = shoppingCartId;
    }

    public static EsSpuVo toVo(EsSpu esSpu){
        EsSpuVo esSpuVo = new EsSpuVo();
        BeanUtils.copyProperties(esSpu,esSpuVo);
        return esSpuVo;
    }
}
